/**
 * @(#)RetentLogDAOImpl.java 2017年11月17日
 * Copyright(C) 2017 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IRetentLogConfigDAO;
import org.jsbd.boss.domian.channel.RetentLogConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

/**
 * 留存执行记录
 * 
 * @author <a href="mailto:xupengcheng@zhexinit.com" >徐鹏程</a>
 * @version 1.0.0
 */
@Service
public class RetentLogConfigDAOImpl extends CrackBaseDao implements IRetentLogConfigDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(RetentLogConfigDAOImpl.class);

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IRetentLogDAO#selectList(org.jsbd.boss.domian.channel
	 * .ApkRetentLogVo)
	 */
	@Override
	public List<RetentLogConfig> selectList(RetentLogConfig retentLogConfig) {
		return super.queryForList("qy_retent_log_config.SELECT_LIST", retentLogConfig);
	}

	@Override
	public List<RetentLogConfig> selectAllList() {
		return super.queryForList("qy_retent_log_config.SELECT_ALL");
	}

	@Override
	public Integer deleteConfig(RetentLogConfig retentLogConfig) {
		return (Integer) super.delete("qy_retent_log_config.DELETE_CONFIG", retentLogConfig);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.jsbd.boss.dao.IRetentLogConfigDAO#batchInsertConfigs(java.util.List)
	 */
	@Override
	public void batchInsertConfigs(List<RetentLogConfig> configList) {
		super.batchInsert("qy_retent_log_config.INSERT_RETENT_LOG", configList);
	}

}
